import request from '@/utils/request'

// 查询收据信息列表
export function listReceipt(query) {
  return request({
    url: '/system/receipt/list',
    method: 'get',
    params: query
  })
}

// 查询收据信息详细
export function getReceipt(receiptNo) {
  return request({
    url: '/system/receipt/' + receiptNo,
    method: 'get'
  })
}

// 新增收据信息
export function addReceipt(data) {
  return request({
    url: '/system/receipt',
    method: 'post',
    data: data
  })
}

// 修改收据信息
export function updateReceipt(data) {
  return request({
    url: '/system/receipt',
    method: 'put',
    data: data
  })
}

// 删除收据信息
export function delReceipt(receiptNo) {
  return request({
    url: '/system/receipt/' + receiptNo,
    method: 'delete'
  })
}
